<?php

class User_ProfileController extends Fengqiaoju_Controller_Action {

	public function init() {

		parent::init ();
		
		$this->view->userObject = $this->userObject;
		if (! $this->isLogin ()) {
			$this->_redirect ( $this->view->url ['login'] );
		}
		$this->view->title = '用户中心';
	
	}

	//首页
	public function indexAction() {

		echo $this->render ();
	}

	//设置头像页面
	public function settingAction() {

		$this->view->setup = $setup = $this->_request->get ( 'setup' );
	
	}

	/**
	 * 用户中心
	 */
	public function messageAction() {

		$userObject = new User_Models_User ();
		$this->_helper->viewRenderer->setNoRender ();
		$userObject->getMessageCenter ();
	}

}